home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / AppleEvents / Events / ConstAEParameter.h < prev   
Text File  |  2000-06-23  |  721b  |  46 lines

  1. // ConstAEParameter.h
  2.  
  3. #ifndef ConstAEParameter_h
  4. #define ConstAEParameter_h
  5.  
  6. #ifndef AEType_h
  7. #include "AEType.h"
  8. #endif
  9. #ifndef AEKey_h
  10. #include "AEKey.h"
  11. #endif
  12. #ifndef Data_h
  13. #include "Data.h"
  14. #endif
  15.  
  16. class AEEvent;
  17. class Buffer;
  18.  
  19. class ConstAEParameter
  20.   {
  21.     private:
  22.         const AEEvent& event;
  23.         AEKey key;
  24.     
  25.     public:
  26.         ConstAEParameter( const AEEvent& theEvent, AEKey theKey )
  27.           : event( theEvent ),
  28.              key( theKey )
  29.           {}
  30.         
  31.         const AEEvent& Event() const        { return event; }
  32.         AEKey Key() const                        { return key; }
  33.  
  34.         bool Exists() const;
  35.                 
  36.         uint32 Length() const;
  37.         AEType Type() const;
  38.         
  39.         void operator>>( Data ) const;
  40.         void operator>>( Buffer& ) const;
  41.  
  42.         void Get( AEType, Data ) const;
  43.   };
  44.  
  45. #endif
  46.